#cross_compile=arm-fsl-linux-gnueabi-
cross_compile=
CFLAGS=-Iinclude
LDFLAGS=

src=$(wildcard *.c)
obj=$(patsubst %.c,%.o,$(src))

target=snapshot

all: $(obj)
	$(cross_compile)gcc $(LDFLAGS) $(obj) -o $(target)
	echo "ok"

%.o:%.c
	$(cross_compile)gcc  -c $(CFLAGS) $< -o $@
	
clean:
	rm -fr $(obj) $(target)
	

.PHONY:clean all


